package com.ithuang.quartz.task;

import org.springframework.stereotype.Component;

import java.util.Date;

@Component("task1")
public class Task1 {

    public void handle() throws InterruptedException {
        Date date = new Date();
        System.out.println("task1"+date+"开始");
        Thread.sleep(10000);
        System.out.println("task1"+date+"结束");
    }

}
